#ifndef __BSP_KEY_H
#define __BSP_KEY_H

#include "bsp.h"

#if HardwareType == Common_Hardware_Type
#define KEY_PORT                GPIOB
#define KEY_PIN                 GPIO_PIN_5
#define KEY_PORT_CLK_ENABLE     __HAL_RCC_GPIOB_CLK_ENABLE

#define KEY_EXTI_IRQn           EXTI9_5_IRQn
#define KEY_EXTI_IRQHandler     EXTI9_5_IRQHandler

void Key_Init(void);


#elif HardwareType == Engineer_Hardware_Type
#define KEY_PORT                GPIOC
#define KEY_PIN                 GPIO_PIN_8
#define KEY_PORT_CLK_ENABLE     __HAL_RCC_GPIOC_CLK_ENABLE

#define KEY_EXTI_IRQn           EXTI9_5_IRQn
#define KEY_EXTI_IRQHandler     EXTI9_5_IRQHandler

void Key_Init(void);

#endif

#endif



